package com.itsc.service;

import com.itsc.dao.AdminLoginDao;
import com.itsc.entities.User;
import com.itsc.service.inter.IAdminLoginService;

public class AdminLoginService implements IAdminLoginService{

	private AdminLoginDao adminLoginDao;
	
	public AdminLoginDao getAdminLoginDao() {
		return adminLoginDao;
	}

	public void setAdminLoginDao(AdminLoginDao adminLoginDao) {
		this.adminLoginDao = adminLoginDao;
	}

	public boolean login(User user)
	{
		return adminLoginDao.login(user);
	}

	public User selectByUserName(String user_name)
	{
		User user = adminLoginDao.selectByUserName(user_name);
		return user;
	}
}
